<?php
mysql_connect("http://animatedcollaspe.googlecode.com/svn/trunk/rooty/irest.sql","root","");
mysql_select_db("irest");

$userName=$_POST["user"];
$password=$_POST["pass"];

$q = mysql_query("select * from registration where userName='$userName' AND password='$password'");
if(mysql_num_rows($q) == 0){
	echo "false";
}
else{
	while ($row = mysql_fetch_array($q))
		echo $row["name"];
}
mysql_close();
?>